import java.io.IOException;

public interface Functionality {

    byte[] readData(int key) throws IOException, ClassNotFoundException;

    byte[][] readData(int[]keys) throws IOException, ClassNotFoundException;

    void writeData(int key, byte[] data) throws IOException, ClassNotFoundException;

    void writeData(int[] keys, byte [][]data) throws IOException, ClassNotFoundException;
}
